package com.example.demo3;

public class Test {
    public static void main(String[] args) {
        Ticket task=new Ticket();
        Thread t1=new Thread(task,"窗口1");
        Thread t2=new Thread(task,"窗口2");
        Thread t3=new Thread(task,"窗口3");
        Thread t4=new Thread(task,"窗口4");

        t1.start();
        t2.start();
        t3.start();
        t4.start();
    }
}
